package com.zyb.warehouse.service;

import com.zyb.warehouse.common.Result;
import com.zyb.warehouse.dto.Page;
import com.zyb.warehouse.entity.Purchase;

/**
 * Description:采购表业务层接口
 */
public interface PurchaseService {

    /**
     * 添加采购单
     *
     * @param purchase
     * @return
     */
    Result addPurchase(Purchase purchase);

    /**
     * 分页查询采购单
     *
     * @param page
     * @param purchase
     * @return
     */
    Page pagePurchase(Page page, Purchase purchase);

    /**
     * 删除采购单
     *
     * @param buyId
     * @return
     */
    Integer removePurchase(Integer buyId);

    /**
     * 修改采购单
     *
     * @param purchase
     * @return
     */
    Result modifyPurchase(Purchase purchase);

    /**
     * 生成入库单
     *
     * @param purchase
     * @return
     */
    Result addInStore(Purchase purchase, String token);
}
